package com.fastshopping.model.dao;


import com.fastshopping.order.pojo.Model;
import com.fastshopping.order.pojo.Share;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Name: 李袁勇
 * @Date: 2020/6/5 9:46
 * @Version: 1.0
 **/
public interface ModelMapper {
    public List <Model> findMyModel(int user_id);

    public List <com.fastshopping.order.pojo.Model> findBuyModel(int user_id);

    public List<Map> findAllCategory();

    public List <com.fastshopping.order.pojo.Model> findOneCategory(@Param("user_id") int user_id, @Param("category") String category);

    public List <com.fastshopping.order.pojo.Model> findTbName(@Param("user_id") int user_id, @Param("tb_name") String tb_name);

    public List<Map> findBuyCategory();

    public List<Map> findCategoryByBuy(@Param("user_id") int user_id, @Param("category") String category);

    public List <Model> findAllBuy(@Param("user_id") int user_id, @Param("sub_category") String sub_category);

}
